package org.budo.oceanengine.api.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author lmw
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class RefreshTokenResponse implements Serializable {
    private static final long serialVersionUID = 5981641473629784867L;

    private String responseBody;

    private Timestamp createdAt;

    private String accessToken;

    private Long expiresIn;

    private String refreshToken;

    private Long refreshTokenExpiresIn;

    public RefreshTokenResponse() {
        this.setCreatedAt(new Timestamp(System.currentTimeMillis()));
    }
}
